<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>展开运算符</title>
</head>
<body>
    <script>
        function gu([x,y,...rui]){
            console.log(x,y,...rui);
        }
        gu([1,2,3,4,5,48,7,8]);
        var a=[1,2,3,4,5,6];
        console.log([...a]);
        var b={
            dk:1,
            nm:{
                q:1,
                w:2,
            }
        }
        const [h,j,...l]=[1,2,32123,656536,485452]
        console.log(h,j ,l)
        var u={...b,...b.nm};
        b.nm.t=3;
        console.log(u)
        var spr='hollow';
        console.log({...spr})
    </script>
</body>
</html>